package com.mvp.shq.washer.ui.orderDetail;

import com.mvp.shq.washer.base.BaseModel;
import com.mvp.shq.washer.base.BasePresenter;
import com.mvp.shq.washer.base.BaseView;
import com.mvp.shq.washer.entity.OrderInfo;
import com.mvp.shq.washer.entity.result.BaseResult;

import io.reactivex.Observable;

/**
 * Created by Administrator on 2017/8/28.
 */

public interface OrderDetailConstract {
    interface Model extends BaseModel{
        Observable<BaseResult<OrderInfo>> getOrderInfo(String token,String orderNo);
        Observable<BaseResult<String>> setErrorOrder(String token,String orderNo);
        Observable<BaseResult<String>> refund(String token,String userId,String orderNo,String content);
    }
    interface View extends BaseView{
        void getOrderS(OrderInfo order);
        void getOrderF(String msg);
        void setErrorOrderS();
        void refundS();
    }
    public abstract class Presenter extends BasePresenter<Model,View>{
        public abstract void getOrders(String orderNo);
        public abstract void setErrorOrder(String orderNo);
        public abstract void refund(String orderNo,String content);
    }
}
